package mspbots.qbd.data.online.creditmemo;

import mspbots.qbd.data.online.Journalentry.OnlineJournalEntry;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

public interface OnlineCreditMemoRepositiry extends R2dbcRepository<OnlineCreditMemo, Long> {
    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return Invoice entity
     */
    Mono<OnlineCreditMemo> findByOtherIdAndTenantId(Long otherId, Long tenantId);
}
